<html>
<head><meta charset="utf-8"><title>riscv abis · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/riscv.20abis.html">riscv abis</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="152666883"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/riscv%20abis/near/152666883" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/riscv.20abis.html#152666883">(Dec 28 2018 at 18:50)</a>:</h4>
<p><span class="user-mention" data-user-id="124289">@rkruppe</span> which ABI is the one for riscv nowadays?</p>



<a name="152667338"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/riscv%20abis/near/152667338" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Hanna Kruppe <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/riscv.20abis.html#152667338">(Dec 28 2018 at 19:00)</a>:</h4>
<p>the "unix C ABI" is documented at <a href="https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md" target="_blank" title="https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md">https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md</a> which llvm and gcc implement but idk what rustc does if that's what you mean. there's a lot of talk about other ABIs (faster interrupts, vector calls, rv32e with its 16 gprs, etc.) but none of them are really as defined yet afaik</p>



<a name="152667790"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/riscv%20abis/near/152667790" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/riscv.20abis.html#152667790">(Dec 28 2018 at 19:11)</a>:</h4>
<p>I’m gonna use extern "C" and write some assembly</p>



<a name="152667792"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/riscv%20abis/near/152667792" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/riscv.20abis.html#152667792">(Dec 28 2018 at 19:11)</a>:</h4>
<p>so was wondering what I should target</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>